package com.ruoyi.zhoubao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zhoubao.mapper.ABaseMapper;
import com.ruoyi.zhoubao.domain.ABase;
import com.ruoyi.zhoubao.service.IABaseService;
import com.ruoyi.common.core.text.Convert;

/**
 * abaseService业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-24
 */
@Service
public class ABaseServiceImpl implements IABaseService 
{
    @Autowired
    private ABaseMapper aBaseMapper;

    /**
     * 查询abase
     * 
     * @param name abase主键
     * @return abase
     */
    @Override
    public ABase selectABaseByName(String name)
    {
        return aBaseMapper.selectABaseByName(name);
    }

    /**
     * 查询abase列表
     * 
     * @param aBase abase
     * @return abase
     */
    @Override
    public List<ABase> selectABaseList(ABase aBase)
    {
        return aBaseMapper.selectABaseList(aBase);
    }
    public List<ABase> selectABaseList2(ABase aBase)
    {
        return aBaseMapper.selectABaseList2(aBase);
    }
    public List<ABase> selectABaseListCount(ABase aBase)    {
        return aBaseMapper.selectABaseListCount(aBase);
    };
    /**
     * 查询个人总需求数和本周新增需求数
     *
     * @param aBase abase
     * @return abase集合
     */
    @Override
    public List<ABase> selectPersonalDemandList(ABase aBase)
    {
        return aBaseMapper.selectPersonalDemandList(aBase);
    }

    /**
     * 查询个人近五周每周新增需求数
     *
     * @param aBase abase
     * @return abase集合
     */
    @Override
    public List<ABase> selectWeeklyDemandsList(ABase aBase)
    {
        return aBaseMapper.selectWeeklyDemandsList(aBase);
    }

    /**
     * 新增abase
     * 
     * @param aBase abase
     * @return 结果
     */
    @Override
    public int insertABase(ABase aBase)
    {
        return aBaseMapper.insertABase(aBase);
    }

    /**
     * 修改abase
     * 
     * @param aBase abase
     * @return 结果
     */
    @Override
    public int updateABase(ABase aBase)
    {
        return aBaseMapper.updateABase(aBase);
    }

    /**
     * 批量删除abase
     * 
     * @param names 需要删除的abase主键
     * @return 结果
     */
    @Override
    public int deleteABaseByNames(String names)
    {
        return aBaseMapper.deleteABaseByNames(Convert.toStrArray(names));
    }

    /**
     * 删除abase信息
     * 
     * @param name abase主键
     * @return 结果
     */
    @Override
    public int deleteABaseByName(String name)
    {
        return aBaseMapper.deleteABaseByName(name);
    }
}